package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.CmsArticle;
import com.ruoyi.system.mapper.CmsArticleMapper;
import com.ruoyi.system.service.ICmsArticleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CmsArticleServiceImpl implements ICmsArticleService {

    @Resource
    private CmsArticleMapper cmsArticleMapper;

    @Override
    public CmsArticle selectCmsArticleById(Long articleId) {
        return cmsArticleMapper.selectCmsArticleById(articleId);
    }

    @Override
    public List<CmsArticle> selectCmsArticleList(CmsArticle article) {
        return cmsArticleMapper.selectCmsArticleList(article);
    }

    @Override
    public int insertCmsArticle(CmsArticle article) {
        return cmsArticleMapper.insertCmsArticle(article);
    }

    @Override
    public int updateCmsArticle(CmsArticle article) {
        return cmsArticleMapper.updateCmsArticle(article);
    }

    @Override
    public int deleteCmsArticleByIds(Long[] articleIds) {
        return cmsArticleMapper.deleteCmsArticleByIds(articleIds);
    }

    @Override
    public int deleteCmsArticleById(Long articleId) {
        return cmsArticleMapper.deleteCmsArticleById(articleId);
    }
}


